package com.dhc.service.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 管理员登录表
 *
 * @TableName ADMIN_LOGIN
 */
@SuppressWarnings({"all"})
@TableName(value = "ADMIN_LOGIN")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminLogin implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;


	/**
	 * 主键ID
	 */
	@TableId(value = "ADMIN_ID", type = IdType.ASSIGN_UUID)
	private String adminId;

	/**
	 * 用户名
	 */
	@TableField(value = "ADMIN_USERNAME")
	private String adminUsername;

	/**
	 * 密码
	 */
	@TableField(value = "ADMIN_PASSWORD")
	private String adminPassword;

	/**
	 * 手机号
	 */
	@TableField(value = "ADMIN_PHONE")
	private String adminPhone;

	/**
	 * 逻辑删除（1-正常，0-删除）
	 */
	@TableField(value = "ADMIN_DEL_FLAG")
	@TableLogic(value = "1", delval = "0")
	private String adminDelFlag;

	/**
	 * 创建时间
	 */
	@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 修改时间
	 */
	@TableField(value = "MODIFY_TIME", fill = FieldFill.INSERT_UPDATE)
	private Date modifyTime;

	/**
	 * 头像
	 */
	@TableField(value = "ADMIN_AVATAR")
	private String adminAvatar;

	/**
	 * 邮箱
	 */
	@TableField(value = "ADMIN_EMAIL")
	private String adminEmail;

}